package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBaseCompanyOffice;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBaseCompanyOffice is a Querydsl query type for EBaseCompanyOffice
 */
@Label("BaseCompanyOffice查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBaseCompanyOffice extends RelationalPathBase<EBaseCompanyOffice> {

    private static final long serialVersionUID = 904377535;

    public static final QBaseCompanyOffice baseCompanyOffice = new QBaseCompanyOffice("base_company_office");

    public class PrimaryKeys {

        public final PrimaryKey<EBaseCompanyOffice> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCompany> companyFk = createForeignKey(baseCompanyId, "id");

    }

    public final StringPath baseCompanyId = createString("baseCompanyId");

    public final StringPath belongCompany = createString("belongCompany");

    public final StringPath id = createString("id");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QBaseCompanyOffice(String variable) {
        super(EBaseCompanyOffice.class, forVariable(variable), "null", "base_company_office");
        addMetadata();
    }

    public QBaseCompanyOffice(String variable, String schema, String table) {
        super(EBaseCompanyOffice.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBaseCompanyOffice(Path<? extends EBaseCompanyOffice> path) {
        super(path.getType(), path.getMetadata(), "null", "base_company_office");
        addMetadata();
    }

    public QBaseCompanyOffice(PathMetadata<?> metadata) {
        super(EBaseCompanyOffice.class, metadata, "null", "base_company_office");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(baseCompanyId, ColumnMetadata.named("base_company_id").withIndex(3).ofType(Types.CHAR).withSize(24));
        addMetadata(belongCompany, ColumnMetadata.named("belongCompany").withIndex(2).ofType(Types.VARCHAR).withSize(500));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
    }

}

